var t = require;
var e = module;
var n = exports;
var o =
    (this && this.__extends) ||
    (function() {
        var t = function(e, n) {
            return (t =
                Object.setPrototypeOf ||
                ({ __proto__: [] }
                    instanceof Array &&
                    function(t, e) {
                        t.__proto__ = e;
                    }) ||
                function(t, e) {
                    for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]);
                })(e, n);
        };
        return function(e, n) {
            function o() {
                this.constructor = e;
            }
            t(e, n), (e.prototype = null === n ? Object.create(n) : ((o.prototype = n.prototype), new o()));
        };
    })(),
    r =
    (this && this.__decorate) ||
    function(t, e, n, o) {
        var r,
            a = arguments.length,
            i = a < 3 ? e : null === o ? (o = Object.getOwnPropertyDescriptor(e, n)) : o;
        if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) i = Reflect.decorate(t, e, n, o);
        else
            for (var s = t.length - 1; s >= 0; s--)
                (r = t[s]) && (i = (a < 3 ? r(i) : a > 3 ? r(e, n, i) : r(e, n)) || i);
        return a > 3 && i && Object.defineProperty(e, n, i), i;
    };
Object.defineProperty(n, "__esModule", { value: !0 }), (n.ta = void 0);
var a = t("Loading"),
    i = t("BootConst"),
    s = t("DD"),
    c = t("Files"),
    d = t("WX"),
    l = require("./加载子包"),
    B = cc._decorator,
    u = B.ccclass,
    p =
    (B.property,
        (function(t) {
            function e() {
                return (null !== t && t.apply(this, arguments)) || this;
            }
            return (
                o(e, t),
                (e.prototype.start = function() {
                    var t = this,
                        e = cc.winSize.width,
                        n = cc.winSize.height;
                    e > n ?
                        e / n < 1.775 && ((cc.Canvas.instance.fitHeight = !1), (cc.Canvas.instance.fitWidth = !0)) :
                        n / e < 1.775 && ((cc.Canvas.instance.fitWidth = !1), (cc.Canvas.instance.fitHeight = !0)),
                        (this.loading = cc.Canvas.instance.node.parent
                            .getChildByName("loading")
                            .getComponent(a.default)),
                        this.loading.init(),
                        cc.game.addPersistRootNode(this.loading.node),
                        (this.loading.node.active = !1),
                        this.scheduleOnce(function() {
                            (t.loading.node.x = cc.Canvas.instance.node.x),
                            (t.loading.node.y = cc.Canvas.instance.node.y),
                            (t.loading.node.active = !0);
                        }),
                        s.default.init(),
                        s.default.dd(i.dd.boot),
                        d.default.测速(d.default.测速s.boot),
                        l.default.load("1st", function() {
                            c.Files.init(function() {
                                cc.assetManager.loadBundle("1st", function(t, e) {
                                    t
                                        ?
                                        console.error(t) :
                                        e.loadScene("Main", function(t, e) {
                                            t ? console.error(t) : cc.director.runScene(e);
                                        });
                                });
                            });
                        });
                }),
                (e = r([u], e))
            );
        })(cc.Component));
n.default = p;